package com.atguigu.common.exception;

/**
 * 业务处理状态码枚举
 * @author zhangxueyou
 * @date 2020/9/23-16:46
 */

public enum BusiCodeEnum {

    UN_KNOW_EXCEPTION(10000, "系统未知异常"),
    VALID_ARGUMENT(10001, "参数校验异常");
    private int code;
    private String msg;

    public String getMsg() {
        return msg;
    }

    public int getCode() {
        return code;
    }

    BusiCodeEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
